﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;

namespace HotelManageSystem.Domain.Entities
{
    /// <summary>
    /// Class Name:     Room
    /// Author:         Wenshu Zhang
    /// Creation Date:  2011-12-29
    /// Description:    房间信息（ID，房间名，床的数量，房间电话，房间类型，房间状态）
    /// QA:             
    /// -----------------------------------------
    /// </summary>
    public class Room
    {
        //public Room()
        //{
        //    ClientCollection=new Collection<Client>();
        //    ClientConsumptionCollection=new Collection<ClientConsumption>();
        //}
        [Key]
        public string ID { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public int BedNum { get; set; }

        [Required]
        public int PresonNum { get; set; }//记录人数

        public string Telphone { get; set; }

        public virtual RoomType RoomType { get; set; }

        public virtual RoomState RoomState { get; set; }

        public virtual Floor Floor { get; set; }

        //public virtual HotelingInfomation HotelingInfomation { get; set; }

        //public virtual ICollection<Client> ClientCollection { get; set; }

        //public virtual ICollection<ClientConsumption> ClientConsumptionCollection { get; set; }
    }
}
